package org.leveryd.controller;

import org.leveryd.dao.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class testSpring4Shell {
    //@PostMapping("/post")
    @ResponseBody
    @RequestMapping("/testSpring4Shell")
    public String testSpring4Shell(User user) {

        System.out.println("test user");
        return "hi";
        //return user;
        //CachedIntrospectionResults

        //org.springframework.cache.jcache.interceptor.CacheResultInterceptor
        //org.springframework.web.bind.annotation.InitBinder
        //org.springframework.beans.CachedIntrospectionResults
        //AccessLogValve
        //org.springframework.beans.AbstractNestablePropertyAccessor
    }

//    @InitBinder
//    public void setAllowedFields(WebDataBinder dataBinder){
//        String[]abd=new String[]{"class.*","Class.*","*.class.*","*.Class.*"};
//        dataBinder.setDisallowedFields(abd);
//    }

}
